package com.sd.nacosdemo.controller;

import com.sd.nacosdemo.Util.MyMail;
import org.springframework.data.repository.query.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName EmailController
 * @Description TODO
 * @date 2021/6/25 9:05
 * @Version 1.0
 */
@RestController
public class EmailController {

    @RequestMapping("/emailLogin")
    public void emailLogin(@Param("code") String code, @Param("email") String email, @RequestParam List<String> tomails) throws Exception {
        MyMail.mailLogin(code,email,tomails);
    }
}
